//
//  Vehicle.h
//  Racing
//
//  Created by vy phan on 4/12/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Body.h"
#import "GameConstants.h"


@interface Vehicle : Body {
	@private 
	bool motoron;
	bool reversing;	
	float length;
	float width;
	// objective c ko co kieu byte
	// co the su dung char hoac unichar de thay the
	char vehicleId; // id trung voi dinh danh trong OC
	bool left;
	bool right;
	
	@public 
	float steering_angle;
	float wx1, wy1;
	float wx2, wy2;
}
-(id) initWithId:(char)vId X:(float)x Y:(float)y;
-(id) initWithX:(float)x Y:(float)y;
-(char) getId;
-(void) setAngle;
-(void) steerLeft:(BOOL)left_;
-(void) steerRight:(BOOL)right_;
-(float) getLength;
-(float) getWidth;
-(void) setMotorOn:(BOOL)on_;
-(void) reverse:(BOOL)reversing_;
@end
